package com.hotdog.feign;

import com.hotdog.pojo.Params;
import com.hotdog.pojo.TokenDate;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 远程调用令牌生成服务
 * @author 郭鲁政
 */
@FeignClient(name ="pig-login" )
public interface LoginFeignClient {
    /**
     * 调用令牌生成Controller
     */
    @PostMapping("/nono/upload/uploadInfo")
    TokenDate getToken(@RequestBody Params params);
}
